const prefix = 'APP';
export const TOKEN = `${prefix}_TOKEN`;
export const REMEMBER_INFO = `${prefix}_REMEMBER_INFO`;

const storage = {
  remove: (key: string) => {
    window.localStorage.removeItem(key);
  },
  get: (key: string) => {
    return window.localStorage.getItem(key);
  },
  set: (key: string, value: any) => {
    window.localStorage.setItem(key, JSON.stringify(value));
  },
};

export default storage;
